{% extends "base.html" %}

{% block title %}Contact us{% endblock %}

{% block content %}

<!--
    {% if errors %}
        <ul>
            {% for error in errors %}
            <li>{{error}}</li>
            {% endfor %}
        </ul>
    {% endif %}

    <form action = "/contact/" method="post">
        <p>Subject: <input type="text" name="subject" /></p>
        <p>Your e-mail (optional): <input type="text" name="email" /></p>
        <p>Message: <textarea name="message" rows="10" cols="50"></textarea></p>
        <input type="submit" value="Submit" />
    </form>
-->

    <h1>Contact us</h1>

    {% if contact_form.errors %}
        <p style="color: red;">
            Please correct the error{{ contact_form.errors|pluralize }} below.
        </p>
        <ul>
            {% for error in contact_form.errors %}
            <li>{{error}}</li>
            {% endfor %}
        </ul>
    {% endif %}

    <form action="" method="post">
        <table>
            {{ contact_form.as_table }}
        </table>
        <input type="submit" value="Submit" />
    </form>

{% endblock %}

